<template>
	<view>
		<view class="fixAutoNoPd middle whiteBg" @tap="onClick">
			<view>
				<slot></slot>
			</view>
			<view class="text-center w30">
				<view class="sIcon-arrowRight grey"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'arrowNav',
		data() {
			return {
				
			};
		},
		props: {
			url : {
				default : ""
			}
		},
	
		
		methods: {
			onClick:function(e){
				if (this.url) {
					uni.navigateTo({
						url: this.url 
					});
					return ;
				}
				this.$emit("onClick",e);
			},
		}
	}
</script>

<style>

</style>
